package com.rightsidetech.mall.service;

import com.github.pagehelper.PageInfo;
import com.rightsidetech.commom.base.ResponseData;
import com.rightsidetech.mall.dto.request.userApp.CommodityAppPageReq;
import com.rightsidetech.mall.dto.request.userApp.OptCommodityReq;
import com.rightsidetech.mall.dto.response.userApp.CommodityAppDetailResp;
import com.rightsidetech.mall.dto.response.userApp.CommodityAppPageResp;
import com.rightsidetech.mall.dto.response.userApp.OptCommodityOneResp;
import com.rightsidetech.mall.dto.response.userApp.OptCommodityResp;

import java.util.List;

public interface MallUserAppCommodityService {

    ResponseData<PageInfo<CommodityAppPageResp>> page(CommodityAppPageReq req,Long agentId);

    ResponseData<CommodityAppDetailResp> findDetailById(Long commodityId,Long agentId);

    ResponseData<OptCommodityOneResp> oneCommodity(Long commodityId);

    ResponseData<OptCommodityResp> optCommodity(OptCommodityReq req);

    List<Long> selectCommodityIdsByAgentId(Long agentId);
}
